bitkeeper revision 1.22.2.6 (3e453f3dCn57Rsy_s15t0vEHA2Pbbw)
authoriap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk>
Sat, 8 Feb 2003 17:32:45 +0000 (17:32 +0000)
committeriap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk>
Sat, 8 Feb 2003 17:32:45 +0000 (17:32 +0000)
Build image with "-g" to enable debuging symbols, then generate an
"image.s" file that is the source annotated assembler. I've made this
the default.

xen-2.4.16/Makefile
xen-2.4.16/Rules.mk

index 846c0e6f1214cf0f1d45378581b71f159c21bb69..82837d99a173af4564b3e440a23e889bb4eae6f4 100644 (file)
@@ -5,6 +5,7 @@ include Rules.mk
 
 default: $(TARGET)
        gzip -f -9 < $(TARGET) > $(TARGET).gz
+       objdump -D -S image >image.s
 
 install: $(TARGET)
        gzip -f -9 < $(TARGET) > $(TARGET).gz
index 5a33804410e3765517b6ebba3a41de474fd9438e..8bea78943915a9c252733f62388f7b94adffd4f6 100644 (file)
@@ -27,7 +27,7 @@ HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
 include $(BASEDIR)/arch/$(ARCH)/Rules.mk
 
 %.o: %.c $(HDRS) Makefile
-       $(CC) $(CFLAGS) -c $< -o $@
+       $(CC) -g $(CFLAGS) -c $< -o $@
 
 %.o: %.S $(HDRS) Makefile
        $(CC) $(CFLAGS) -D__ASSEMBLY__ -c $< -o $@